#ifndef SESSION
#define SESSION

#include<sys/socket.h>
#include<netinet/in.h>
#include<sys/types.h>

#include"user.h"


typedef struct Session{
    int sockfd;
    int notice_sockfd;//负责通知的socket，所有通过该socket发送的消息客户端只需要打印出来即可
    struct sockaddr_in *user_sock_addr;
    User* user;
}Session;

extern Session* create_session();

extern Session* close_session(Session *);

extern Session* destory_session(Session *);

#endif


